/// @description 生成方块组合
// You can write your code in this editor
var i = argument[0]%5;
x = round(x/32)*32;
if(i>3)
	x+=16;
	
//生成方块组
switch(i)
{
	/*
	口口口
	口
	*/
	case 0:
	box[0] = instance_create_depth(x-16, y-16, depth, oBox);
	box[1] = instance_create_depth(x+16, y-16, depth, oBox);
	box[2] = instance_create_depth(x+16+32, y-16, depth, oBox);
	box[3] = instance_create_depth(x-16, y+16, depth, oBox);
	break;
	
	/*
	口口
	口口
	*/
	case 1:
	box[0] = instance_create_depth(x-16, y-16, depth, oBox);
	box[1] = instance_create_depth(x+16, y-16, depth, oBox);
	box[2] = instance_create_depth(x-16, y+16, depth, oBox);
	box[3] = instance_create_depth(x+16, y+16, depth, oBox);
	break;
	
	/*
	口
	口口口
	*/
	case 2:
	box[0] = instance_create_depth(x-16, y-16, depth, oBox);
	box[1] = instance_create_depth(x-16, y+16, depth, oBox);
	box[2] = instance_create_depth(x+16, y+16, depth, oBox);
	box[3] = instance_create_depth(x+16+32, y+16, depth, oBox);
	break;

	/*
	口
	口
	口
	口
	*/
	case 3:
	box[0] = instance_create_depth(x+16, y-16-32, depth, oBox);
	box[1] = instance_create_depth(x+16, y-16, depth, oBox);
	box[2] = instance_create_depth(x+16, y+16, depth, oBox);
	box[3] = instance_create_depth(x+16, y+16+32, depth, oBox);
	break;
	
	/*
	口
	口口
	口
	*/
	case 4:
	box[0] = instance_create_depth(x, y-32, depth, oBox);
	box[1] = instance_create_depth(x, y, depth, oBox);
	box[2] = instance_create_depth(x+32, y, depth, oBox);
	box[3] = instance_create_depth(x, y+32, depth, oBox);
	break;
	

}